package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.lang.reflect.InvocationTargetException;

public interface WmNewsService extends IService<WmNews> {
    /**
     * 文章列表查询
     * @parm dto
     * @return
     */
    public ResponseResult list(WmNewsPageReqDto dto);


    /**
     * 文章发布，保存，修稿草稿
     * @return
     */
    public ResponseResult submit( WmNewsDto dto);
}